<?php
/* @var $this QuotationOrderHeaderController */
/* @var $model QuotationOrderHeader */

$this->breadcrumbs=array(
	'Quotation Order Headers'=>array('index'),
	$model->quotation_no=>array('view','p_pn'=>$model->product_pn,'uom'=>$model->uom,'quo_no'=>$model->quotation_no),
	'Update',
);

Yii::app()->clientScript->registerScript('search', "
$('#qty').change(function(){
    var qty=document.getElementById('qty').value;
    var unit=document.getElementById('unit_sell').value;
    $('#total').val(unit*qty);
    
});

");

$this->menu=array(
	array('label'=>'View Quotation', 'url'=>array('quotationorderheader/viewQuotationOrderHeader','id'=>$model->quotation_no)),
	array('label'=>'Add Item', 'url'=>array('create','quo_no'=>$model->quotation_no)),
	array('label'=>'View Item', 'url'=>array('view', 'p_pn'=>$model->product_pn,'uom'=>$model->uom,'quo_no'=>$model->quotation_no)),
	array('label'=>'Delete Item', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','p_pn'=>$model->product_pn,'uom'=>$model->uom,'quo_no'=>$model->quotation_no),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Back','url'=>'#','linkOptions'=>array('onclick'=>'js:history.go(-1);')),
);
?>

<h1>Update Item Quotation No. <?php echo $model->quotation_no; ?></h1>

<?php $this->renderPartial('_form', array('model'=>$model,'quo_no'=>$quo_no,'unit_sell'=>$unit_sell,'total'=>$total)); ?>